<template>
	<view class="index">
		<view class="index-user">
			<view class="index-user-img">
				<image src="../../static/logo.png"></image>
				<view class="btnlog">
					<button class="buttonlogin" hover-class="bg-click" @click="goto('/pages/login/login')">去登录</button>
				</view>
			</view>
			<view class="index-user-list">
				<uni-list v-for="(item,index) in data">
					<uni-list-item clickable to="" :title="item" direction="column" showArrow></uni-list-item>
				</uni-list>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: [
					"用户信息",
					"修改密码",
					"版本更新",
					"意见反馈"
				]
			}
		},
		onLoad() {

		},
		methods: {
			goto(url) {
				uni.navigateTo({
					url: '/pages/login/login'
				})
			}

		}
	}
</script>

<style>
	.index-user-img {
		/* background: #9bdeff; */
		background: linear-gradient(to left, #006f6b, #5dc8b1);
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.index-user-img image {
		margin: 100rpx auto 100rpx;
		width: 200rpx;
		height: 200rpx;
		border: 3px solid white;
		border-radius: 100rpx;
		margin-bottom: 20rpx;
	}

	.buttonlogin {
		/* width: 500rpx;
			height: 80rpx;
			display: flex;
			line-height: 50rpx;
			justify-content: center;
			align-items: center;
			color: #fff;
			border-radius: 25px;
			background-color: #0055ff;
			font-size: 40rpx;
			margin-bottom: 50rpx; */

		height: auto !important;
		width: 300rpx;
		line-height: 70rpx;
		background-color: rgba(255, 255, 255, 1);
		padding: 0;
		box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0);
		margin: 20px auto;
		border-color: #ccc;
		border-radius: 30rpx;
		color: #006f6b;
		font-size: 40rpx;
		border-style: solid;
		display: flex;
		justify-content: center;
	}

	.bg-click {
		background-color: #e0f8ff;
		color: black;
	}
</style>
